﻿<controls:ChildWindow xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  
           x:Class="LEEAAttendanceControl.Views.ExceptionAssignmentEdit"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices"
           xmlns:my="clr-namespace:LEEAAttendanceControl.Web.Services"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="650" Height="300" 
           Title="Edit Employee Exceptions">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.Resources>
            <LinearGradientBrush x:Key="BackRectangleBrush" EndPoint=".7,1" StartPoint=".7,0">
                <GradientStop Color="#FCFFFFFF" Offset="0.015"/>
                <GradientStop Color="#F7FFFFFF" Offset="0.375"/>
                <GradientStop Color="#E5FFFFFF" Offset="0.6"/>
                <GradientStop Color="#D1FFFFFF" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Resources>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="180"/>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid Grid.Row="0" Margin="10" HorizontalAlignment="Center">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="70"/>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <sdk:Label Content="Employee Name:" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center"
                       Margin="3"/>
            <TextBox x:Name="NameBox" Grid.Column="1" Width="170" IsEnabled="False" Margin="3"/>

            <sdk:Label Content="Department:" Grid.Column="3" HorizontalAlignment="Left" VerticalAlignment="Center"
                       Margin="3"/>
            <TextBox x:Name="DepartmentBox" Grid.Column="4" Width="150" IsEnabled="False" Margin="3"/>
        </Grid>

        <Grid Grid.Row="1" HorizontalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="70"/>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <sdk:Label Content="Exception" Grid.Column="0" Grid.ColumnSpan="5" Grid.Row="0" FontSize="14" FontWeight="Bold"
                       Margin="0,25,0,25" HorizontalAlignment="Center"/>

            <sdk:Label Content="Exception:" Grid.Column="0" Grid.Row="1" HorizontalAlignment="Left" Margin="3"
                       VerticalAlignment="Center"/>
            <TextBox x:Name="ExNameBox" Width="170" Grid.Column="1" Grid.Row="1" Margin="3" IsEnabled="False"/>

            <sdk:Label Content="From:" Grid.Column="0" Grid.Row="2" HorizontalAlignment="Left" Margin="3,20,3,3"
                       VerticalAlignment="Center"/>
            <sdk:DatePicker x:Name="FromPicker" Width="170" Grid.Column="1" Grid.Row="2" Margin="3,20,3,3"/>

            <sdk:Label Content="Duration:" Grid.Column="3" Grid.Row="2" HorizontalAlignment="Left" Margin="3,20,3,3"
                       VerticalAlignment="Center"/>
            <toolkit:NumericUpDown x:Name="DurationUD" Grid.Column="4" Grid.Row="2" Width="150" Margin="3,20,3,3"/>
        </Grid>

        <StackPanel Grid.Row="2" HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,5,18,0">
            <Button x:Name="SaveButton" Content="Save" Click="SaveButton_Click" Width="75" Height="23" Margin="0,0,15,0"/>
            <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23"/>
        </StackPanel>
    </Grid>
</controls:ChildWindow>